#include <bits/stdc++.h>
#include <string>
using namespace std;

int main()
{
    int n, a, b;
    cin >> n >> a >> b;
    int p = 1, q = n;
    for (int i = n; i > 1; i--)
    {
        for (int j = 1; j <= i; j++)
        {
            if (j * b < i * a && j * q > i * p)
            {
                p = j;
                q = i;
            }
        }
    }
    cout << p << " " << q << endl;
    return 0;
}